﻿<Window x:Class="TunnelingEvents" x:Name="windowTunnelingEvents" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Tunneling Events" Height="303" Width="327" ResizeMode="NoResize">
    <Window.Resources>
        <Style TargetType="{x:Type Button}">
            <Style.Triggers>
                <Trigger Property="IsPressed" Value="True">
                    <Setter Property="Effect">
                        <Setter.Value>
                            <DropShadowEffect BlurRadius="60" Color="Black" />
                        </Setter.Value>
                    </Setter>
                </Trigger>
            </Style.Triggers>
        </Style>
    </Window.Resources>
    <Grid>
        <Grid x:Name="outerGrid">
            <Grid x:Name="middleGrid" Margin="35,60,35,35">
                <Grid x:Name="innerGrid" Margin="35,60,35,22">
                    <Button Height="23" Margin="41,50,0,0" VerticalAlignment="Top" Content="Button" HorizontalAlignment="Left" Width="75" />
                </Grid>
            </Grid>
        </Grid>
        <CheckBox Margin="16,16,0,0" Height="16" Name="chkOuter" VerticalAlignment="Top" HorizontalAlignment="Left" Width="94" Content="Handle Event" />
        <CheckBox Height="16" Margin="45,70,0,0" Name="chkMiddle" VerticalAlignment="Top" Content="Handle Event" HorizontalAlignment="Left" Width="92" />
        <CheckBox Height="16" Margin="85,135,0,0" Name="chkInner" VerticalAlignment="Top" Content="Handle Events Too" HorizontalAlignment="Left" />
    </Grid>
</Window>
